# !/usr/bin/env python
# -*- coding:utf-8 -*-

import pymysql
from config.db import db as dbconf

class baseModel(object):
    def __init__(self):
        """
        数据初始化
        """
        self.conn = pymysql.connect(
            host = dbconf.get("host"),
            port = dbconf.get("port"),
            user = dbconf.get("user"),
            passwd = dbconf.get("password"),
            db = dbconf.get("database"),
            charset = "utf8"
        )



